#include "StdAfx.h"
#include "MenuState.h"
#include "../Kernel.h"

extern Kernel* g_kernel;

MenuState::MenuState(void)
{
    SetName("MenuState");
}

MenuState::~MenuState(void)
{
}


int MenuState::Init()
{
    std::string script = g_kernel->GetCvars()->GetStringValue("g_menu_script");
    g_kernel->GetScriptEngine()->RunFile( script );

    return 0;
}